<template>
	<view class="feedback">
		<uni-easyinput v-model="text" type="textarea" placeholder="请输入您的反馈内容"></uni-easyinput>

		<view class="fixView"> </view>
		<view class="fixBtn">
			<button @click="message" type="primary">完成</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: ''
			}
		},
		onLoad() {
			this.text = ''
		},
		methods: {
			message() {
				if (!this.text) return this.$api.msg('请输入反馈内容')
				this.$api.msg('感谢您的支持,我们会尽快回复您!')
				setTimeout(() => {
					uni.navigateBack()
				}, 1000)
			}
		}
	}
</script>

<style lang="scss" scoped>
	.feedback {
		padding: 20rpx;
		background-color: #fff;
		height: 100%;
	}
</style>